<template>
  <div>
    <router-view #default="{ Component, route }">
      <keep-alive>
        <component :is="Component" v-if="route.meta.keepAlive" />
      </keep-alive>
      <component :is="Component" v-if="!route.meta.keepAlive" />
    </router-view>
    <nav-bottom v-show="isShowNavBottom" />
  </div>
</template>

<script setup>
import NavBottom from "@/components/NavBottom.vue";
import { computed } from "vue";
import { useRoute } from "vue-router";

const $route = useRoute();
const isShowNavBottom = computed(() => !$route.meta.showNavBottom);
</script>

<style scoped></style>
